/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.verify;

import picounit.verify.ByteArrayConstraints;
import picounit.verify.ByteArrayConstraintsDeltaKnown;
import picounit.verify.ReasonCapturer;

public class DefaultByteArrayConstraints extends PrimativeArrayConstraints
	implements ByteArrayConstraints {

	public DefaultByteArrayConstraints(Evaluator evaluator) {
		super(evaluator);
	}
	
	public ByteArrayConstraintsDeltaKnown withDelta(byte delta) {
		setDelta(new Byte(delta));

		return this;
	}

	public ReasonCapturer isEqualTo(byte ... equalTo) {
		return super.isEqualTo(equalTo);
	}
	
	public ReasonCapturer isDifferentTo(byte ... differentTo) {
		return super.isDifferentTo(differentTo);
	}
	
	public ReasonCapturer contains(byte contains) {
		return passes(constraintFactory.primativeArrayContains(contains, modifier()));
	}

	public ReasonCapturer doesNotContain(byte doesNotContain) {
		return passes(constraintFactory.primativeArrayDoesNotContain(doesNotContain, modifier()));
	}
}
